/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.data;

import com.eam.data.EmesShapeItem;
import com.mes.manufacture.data.EmesoJobOrderMaterial;
import com.mes.manufacture.data.EmesoJobPlanBom;
import com.mes.manufacture.data.EmesoManuOrderBom;
import com.mes.plan.data.EmespPlanOrderBom;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
import org.openbravo.model.common.plm.Product;
/**
 * Entity class for entity Emes_Shape (stored in table Emes_Shape).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesShape extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emes_Shape";
    public static final String ENTITY_NAME = "Emes_Shape";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_NAME = "name";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_EMESFILE = "emesFile";
    public static final String PROPERTY_DATA = "data";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_UPLOADBUTTON = "uploadButton";
    public static final String PROPERTY_CHECKBUTTON = "checkButton";
    public static final String PROPERTY_JIABAN = "jiaban";
    public static final String PROPERTY_EMESPBOMITEMSHAPELIST = "emesPBomItemShapeList";
    public static final String PROPERTY_EMESSHAPEITEMLIST = "emesShapeItemList";
    public static final String PROPERTY_EMESOJOBORDERMATERIALLIST = "emesoJobOrderMaterialList";
    public static final String PROPERTY_EMESOJOBPLANBOMLIST = "emesoJobPlanBomList";
    public static final String PROPERTY_EMESOMANUORDERBOMLIST = "emesoManuOrderBomList";
    public static final String PROPERTY_EMESPPLANORDERBOMLIST = "emespPlanOrderBomList";

    public EmesShape() {
        setDefaultValue(PROPERTY_TYPE, "XZ");
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_UPLOADBUTTON, false);
        setDefaultValue(PROPERTY_CHECKBUTTON, false);
        setDefaultValue(PROPERTY_EMESPBOMITEMSHAPELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESSHAPEITEMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOJOBORDERMATERIALLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOJOBPLANBOMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOMANUORDERBOMLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPPLANORDERBOMLIST, new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public String getName() {
        return (String) get(PROPERTY_NAME);
    }

    public void setName(String name) {
        set(PROPERTY_NAME, name);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public EmesFile getEmesFile() {
        return (EmesFile) get(PROPERTY_EMESFILE);
    }

    public void setEmesFile(EmesFile emesFile) {
        set(PROPERTY_EMESFILE, emesFile);
    }

    public String getData() {
        return (String) get(PROPERTY_DATA);
    }

    public void setData(String data) {
        set(PROPERTY_DATA, data);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public Boolean isUploadButton() {
        return (Boolean) get(PROPERTY_UPLOADBUTTON);
    }

    public void setUploadButton(Boolean uploadButton) {
        set(PROPERTY_UPLOADBUTTON, uploadButton);
    }

    public Boolean isCheckButton() {
        return (Boolean) get(PROPERTY_CHECKBUTTON);
    }

    public void setCheckButton(Boolean checkButton) {
        set(PROPERTY_CHECKBUTTON, checkButton);
    }

    public Product getJiaban() {
        return (Product) get(PROPERTY_JIABAN);
    }

    public void setJiaban(Product jiaban) {
        set(PROPERTY_JIABAN, jiaban);
    }

    @SuppressWarnings("unchecked")
    public List<EmesPBomItemShape> getEmesPBomItemShapeList() {
      return (List<EmesPBomItemShape>) get(PROPERTY_EMESPBOMITEMSHAPELIST);
    }

    public void setEmesPBomItemShapeList(List<EmesPBomItemShape> emesPBomItemShapeList) {
        set(PROPERTY_EMESPBOMITEMSHAPELIST, emesPBomItemShapeList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesShapeItem> getEmesShapeItemList() {
      return (List<EmesShapeItem>) get(PROPERTY_EMESSHAPEITEMLIST);
    }

    public void setEmesShapeItemList(List<EmesShapeItem> emesShapeItemList) {
        set(PROPERTY_EMESSHAPEITEMLIST, emesShapeItemList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoJobOrderMaterial> getEmesoJobOrderMaterialList() {
      return (List<EmesoJobOrderMaterial>) get(PROPERTY_EMESOJOBORDERMATERIALLIST);
    }

    public void setEmesoJobOrderMaterialList(List<EmesoJobOrderMaterial> emesoJobOrderMaterialList) {
        set(PROPERTY_EMESOJOBORDERMATERIALLIST, emesoJobOrderMaterialList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoJobPlanBom> getEmesoJobPlanBomList() {
      return (List<EmesoJobPlanBom>) get(PROPERTY_EMESOJOBPLANBOMLIST);
    }

    public void setEmesoJobPlanBomList(List<EmesoJobPlanBom> emesoJobPlanBomList) {
        set(PROPERTY_EMESOJOBPLANBOMLIST, emesoJobPlanBomList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoManuOrderBom> getEmesoManuOrderBomList() {
      return (List<EmesoManuOrderBom>) get(PROPERTY_EMESOMANUORDERBOMLIST);
    }

    public void setEmesoManuOrderBomList(List<EmesoManuOrderBom> emesoManuOrderBomList) {
        set(PROPERTY_EMESOMANUORDERBOMLIST, emesoManuOrderBomList);
    }

    @SuppressWarnings("unchecked")
    public List<EmespPlanOrderBom> getEmespPlanOrderBomList() {
      return (List<EmespPlanOrderBom>) get(PROPERTY_EMESPPLANORDERBOMLIST);
    }

    public void setEmespPlanOrderBomList(List<EmespPlanOrderBom> emespPlanOrderBomList) {
        set(PROPERTY_EMESPPLANORDERBOMLIST, emespPlanOrderBomList);
    }

}
